home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1492.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  1.8 KB  |  89 lines

  1. 108
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. FileAge 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baFileAge returns the date of a file in seconds.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baFileAge( FileName )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String 
  36. --- RECORDSEPARATOR ---
  37. FileName is the file to get the age of.
  38. --- RECORDSEPARATOR ---
  39.  
  40. --- RECORDSEPARATOR ---
  41. Returns:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. Integer. 
  46. --- RECORDSEPARATOR ---
  47. Returns the age of the file in seconds.
  48. --- RECORDSEPARATOR ---
  49.  
  50. --- RECORDSEPARATOR ---
  51. Examples:
  52. --- RECORDSEPARATOR ---
  53.  
  54. --- RECORDSEPARATOR ---
  55. Director: 
  56. --- RECORDSEPARATOR ---
  57. set Age = baFileAge( "student.dat" ) 
  58. --- RECORDSEPARATOR ---
  59. Authorware: 
  60. --- RECORDSEPARATOR ---
  61. Age := baFileAge( "student.dat" )
  62. --- RECORDSEPARATOR ---
  63.  
  64. --- RECORDSEPARATOR ---
  65. Notes:
  66. --- RECORDSEPARATOR ---
  67.  
  68. --- RECORDSEPARATOR ---
  69. The number returned is the number of seconds since an arbitrary date. The 
  70. --- RECORDSEPARATOR ---
  71. number means little by itself, but can be used to compare the dates of two files. 
  72. --- RECORDSEPARATOR ---
  73. The file with higher number is the newer file. For example: 
  74. --- RECORDSEPARATOR ---
  75. if baFileAge( "c:\\data\\student.dat"" ) > baFileAge( "a:\\student.dat" ) then 
  76. --- RECORDSEPARATOR ---
  77. --
  78. --- RECORDSEPARATOR ---
  79.  file on "C" drive is newer than the one on "A" drive.
  80. --- RECORDSEPARATOR ---
  81.  
  82. --- RECORDSEPARATOR ---
  83. See also:
  84. --- RECORDSEPARATOR ---
  85.  
  86. --- RECORDSEPARATOR ---
  87. baFileDate 
  88. --- RECORDSEPARATOR ---
  89. baFileVersion